﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using CRM.MODEL.Ali;

namespace CRM.BLL.Ali
{
    public class Ali_OrdersB
    {
        #region Ali_Orders
        /// <summary>
        /// 获取Ali_Orders信息
        /// </summary>
        public DataTable GetAli_Orders(ref CRM.MODEL.Ali.GetAli_Orders stu)
        {
            CRM.DAL.Ali.Ali_OrdersD obj = new CRM.DAL.Ali.Ali_OrdersD();
            DataTable dt = obj.ExecuteGetAli_Orders(ref stu);
            obj.Dispose();
            return dt;
        }

        /// <summary>
        /// 编辑Ali_Orders信息
        /// </summary>
        public int EditAli_Orders(ref CRM.MODEL.Ali.EditAli_Orders stu)
        {
            CRM.DAL.Ali.Ali_OrdersD obj = new CRM.DAL.Ali.Ali_OrdersD();
            if ((string) stu.ACTION_VALUE == "Insert")
            {
                stu.ENTERSYSTIME_VALUE = DateTime.Now;
            }
            int effectRow = obj.ExecuteEditAli_Orders(ref stu);
            obj.Dispose();
            return effectRow;
        }
        #endregion
    }
}
